home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / PInterfaces / Folders.p < prev    next >
Encoding:
Text File  |  1992-01-29  |  1.9 KB  |  69 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Sunday, September 15, 1991 at 11:03 PM
  4.  Folders.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1989-1991
  8.   All rights reserved
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT Folders;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingFolders}
  22. {$SETC UsingFolders := 1}
  23.  
  24. {$I+}
  25. {$SETC FoldersIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$IFC UNDEFINED UsingFiles}
  31. {$I $$Shell(PInterfaces)Files.p}
  32. {$ENDC}
  33. {$SETC UsingIncludes := FoldersIncludes}
  34.  
  35. CONST
  36. kOnSystemDisk = $8000;
  37.  
  38. kCreateFolder = TRUE;
  39. kDontCreateFolder = FALSE;
  40.  
  41. kSystemFolderType = 'macs';                {the system folder}
  42. kDesktopFolderType = 'desk';            {the desktop folder; objects in this folder show on the desk top.}
  43. kTrashFolderType = 'trsh';                {the trash folder; objects in this folder show up in the trash}
  44. kWhereToEmptyTrashFolderType = 'empt';    {the "empty trash" folder; Finder starts empty from here down}
  45.  
  46. kPrintMonitorDocsFolderType = 'prnt';    { Print Monitor documents }
  47.  
  48. kStartupFolderType = 'strt';            {Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here}
  49. kAppleMenuFolderType = 'amnu';            {Finder objects to put into the Apple menu go here}
  50. kControlPanelFolderType = 'ctrl';        {Control Panels go here (may contain INITs)}
  51. kExtensionFolderType = 'extn';            {Finder extensions go here}
  52.  
  53. kPreferencesFolderType = 'pref';        {preferences for applications go here}
  54. kTemporaryFolderType = 'temp';            {temporary files go here (deleted periodically, but don't rely on it.)}
  55.  
  56. FUNCTION FindFolder(vRefNum: INTEGER;folderType: OSType;createFolder: BOOLEAN;
  57.  VAR foundVRefNum: INTEGER;VAR foundDirID: LONGINT): OSErr;
  58. {$IFC SystemSevenOrLater }
  59.  INLINE $7000,$A823;
  60. {$ENDC}
  61.  
  62.  
  63. {$ENDC} { UsingFolders }
  64.  
  65. {$IFC NOT UsingIncludes}
  66.  END.
  67. {$ENDC}
  68.  
  69.